﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
    管理界面
    </title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/Manager/common/css/Style.css" />
	<script type="text/javascript" src="__PUBLIC__/Home/Manager/common/kindeditor/kindeditor-min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/Home/Manager/common/kindeditor/lang/zh_CN.js"></script>
		
 <script type="text/javascript" src="__PUBLIC__/Home/Manager/common/js/Calendar4.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Home/Manager/common/js/json2.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/Manager/common/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/Manager/common/js/manager.js"></script>
<script type="text/javascript">
    $(function() {
    	Vote.LinkUrl='index.php?m=Manager&a=';
        Vote.Inition();
        
    });
  //文本编辑器初始化
var editor;
KindEditor.ready(function(K) {
    editor = K.create('textarea[name="content"]', {
        resizeType: 1,
        allowPreviewEmoticons: false,
        allowImageUpload: false,
        items: [
						'source', '|','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']
    });
});
  //事件触发处理


    //设置日期格式
   //CAR.Task.DateFormat();
   // CAR.Task.NumberFormatter();
 
</script>
    <style type="text/css">
    .container
    {
    	padding:20px;
    	width:800px;
    	margin:0px auto;
    	}
    	.bold
    	{
	font-weight:bold;
    		font-size:14px;
    		color:#103ABA;
    	}
    	.btnsure
    	{
	      font-weight:bold;
    		color:#FF002A;
    		 width:100px;
    	}
    	.filed
    	{
	      float:left;
    	  width:300px;
    		margin:0px;
    		padding:20px;
    	}
    	.info{ color:red;font-size:13px;}







    </style>
</head>
<body>
<div class="header">     <!--header start-->
  <div class="top_wrapper">
      <div id="top">
         <div class="innner_topleft"></div>
         <div class="innner_topright">
                
                 
                 <div class="topmenu">
                
                 <div id="menu">  
                 <!--   
                    <div class="menu_box" ><p class="img_wrapper"><img alt=""  src="__PUBLIC__/Home/Manager/common/images/new/clear.png"></p><p>数据清空</p></div> 
                     <div class="menu_box" ><p class="img_wrapper"><img alt="" src="__PUBLIC__/Home/Manager/common/images/new/static.png"></p><p>说明设置</p></div> 
                      <div class="menu_box" ><p class="img_wrapper"><img alt="" src="__PUBLIC__/Home/Manager/common/images/new/function.png"></p><p>数据统计</p></div> 
                          <div class="menu_box" ><p class="img_wrapper"><a href="http://localhost:8090/NewVote/Home/index.php"><img alt="" src="__PUBLIC__/Home/Manager/common/images/new/function.png"></a></p><p>查看首页</p></div>
              - -->         
                </div>
                
              
                 </div>
               
                </div>
        </div>
        </div>
 <div class="menu2" ></div>

</div>                 <!--header end-->

<div class="wrapper" >
<div class="left_nav" id="left_nav">     <!--Left Nav start-->
 <div class="menu_fold" id="menu_fold">
    <span style="display:block; padding-top:5px; line-height:15px">导航</span>
    <span class="menu_fold_icon"></span>
 </div>
<div class="LeftNote">
 
        <div class="Menu " style="width: 182px">
        <img src="__PUBLIC__/Home/Manager/common/Images/computer_link.png"/>基本设置管理</div>
        <div class="MenuNote" style="display:block;">
 <div style="margin:0px; padding:0px; height:5px;">
            <img src="__PUBLIC__/Home/Manager/common/images/menu_topline.gif" style="vertical-align:top; padding:0px; margin:0px;"  alt="" />
   </div>
            <ul class="MenuUL">
                <li><a href="javascript:;">数据清空</a></li>
                <li><a href="javascript:;" >说明设置</a></li>
                <li><a href="javascript:;" >评价有效时间设置</a></li>
                <li><a href="javascript:;" >数据统计</a></li>
  
            </ul>
        </div>
        <div class="Menu"><img src="__PUBLIC__/Home/Manager/common/Images/table_edit.png"/>其他设置</div>
        <div class="MenuNote" style="display:none;">
           <div style="margin:0px; padding:0px; height:5px;">
            <img src="__PUBLIC__/Home/Manager/common/images/menu_topline.gif" style="vertical-align:top; padding:0px; margin:0px;"  alt="" />
   </div>
            <ul class="MenuUL">
                 <li><a href="javascript:void(0)" >修改密码</a></li>
               <li><a href="javascript:void(0)" >服务管理</a></li>
            </ul>
        </div>
   
    </div>

 
 
 
</div>           <!--Left Nav end-->



<div class="page_content" style=" background-color:#eee; float:left; ">
   <div class="container">
   <div class="Clear_mode">
     <span class="bold">1.清空数据库中的数据记录：</span>
       <input id="Button1" onclick="Vote.ClearData()" type="button" value="清空" />  <span id="clearResult"></span>
       </div>
       <div class="time_set">
       <p class="bold">2.投票时间设定：</p>
       <span>起始时间：</span><input onclick="MyCalendar.SetDate(this)" id="TextStart" value="{$start_time}" type="text" />
        <span>终止时间：</span><input onclick="MyCalendar.SetDate(this)" id="TextEnd" value="{$end_time}"  type="text" />
           <input id="Button3"  onclick="Vote.SetTime()" type="button" value="确定" />
       </div>
           <div class="time_set">
       <p class="bold">3.规定时间内投票次数限定(请直接输入数字)：</p>
       <span>允许投票次数：</span><input  id="limitnumber" value="{$limit_time}" type="text" />
      <input  onclick="Vote.Setlimit()" type="button" value="确定" />
       </div>
    <div class="setText">
    <form>
    <p class="bold">4.输入首页介绍内容</p>
			<textarea name="content" style="width:700px;height:200px;visibility:hidden;">{$content}</textarea>
    <input id="Button2" type="button" onclick="Vote.SetContent()" value="确定" />
    
               <div >
       <p class="bold">5.修改密码：</p>
       <span>原密码：</span><input  id="prepass" value="" type="text" />
       <span>新密码：</span><input  id="password1" value="" type="text" />
       <span>再次输入新密码：</span><input  id="password2" value="" type="text" />
      <input class='btnsure' onclick=" Vote.updatePass()" type="button" value="确定" />
       </div>
       <div class="filed">
       <div id="class_list">
        <p class="bold">6.修改类别名称：</p>
        <foreach name="class_name" item='value'>
         {$key+1}.<input type="text" class='myclass' value="{$value['class_name']}"  name="{$value['class_ID']}" /><br/>
        </foreach>

          <input class='btnsure'  onclick="Vote.updateClass()" type="button" value="确定修改" /> <span class="info" id="classinfo"></span>
        </div>
         <div id="item_list">
        <p class="bold">7.修改细项名称：</p>
        <foreach name="item_list" item='value'>
        {$key+1}.{$value['class_name']} <input type="text" class="myitem" value="{$value['item_name']}"  name="{$value['item_ID']}" /><br/>
        </foreach>
        <input class='btnsure'  onclick="Vote.updateItem()" type="button" value="确定修改" /> <span class="info" id="iteminfo"></span>
       </div>
       </div >
             <div id="score_list" class='filed'>
        <p class="bold" class="filed">8.修改评价项名称：</p>
        <foreach name="score_list" item='value'>
        {$key+1}.{$value['class_name']} <input type="text" class="myscore" value="{$value['score_name']}"  name="{$value['score_ID']}" /><br/>
        </foreach>
        <input class='btnsure'  onclick="Vote.updateScore()" type="button" value="确定修改" /> <span class="info" id="scoreinfo"></span>
       </div>
		</form>
    </div>
   </div>
	
</div>
<div class="clear"></div>
</div>

<!--动态等待图-->
<div id="loading" class="loading_wrapper" style="display: none;">
    <div  class="loading">正在加载...</div>
</div>
</body>
</html>
